package com.eduplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("course")
public class Course implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String title;

    private String description;

    private String cover;

    private Long teacherId;

    private Long subjectId;

    private Integer level;

    private BigDecimal price;

    private Integer status; // 0: draft, 1: published, 2: offline

    private Integer enrollCount;

    private Integer lessonCount;

    private Date createTime;

    private Date updateTime;

    private String subjectName;


    @TableLogic
    private Integer isDeleted;
}